package com.kgc.scd.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 * @author jiangguoqiang
 * @since 2022-11-15
 */
@Data
@TableName("shop_order")
@ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("订单号id")
    private String id;

    @TableField("user_id")
    @ApiModelProperty("用户id")
    private String userId;

    /**
     * 订单商品id
     */
    @ApiModelProperty("订单商品id")
    @TableField("order_goods_id")
    private Integer orderGoodsId;

    /**
     * 订单状态
     */
    @ApiModelProperty(value="状态 1-待支付  3-已支付 5-已发货 6-已签收 7-已评价 8-已追评")
    @TableField("shopping_status")
    private Integer shoppingStatus;


    /**
     * 收货地址
     */
    @TableField("address_id")
    @ApiModelProperty("收获地址id")
    private String addressId;

    /**
     * 附言
     */
    @ApiModelProperty("附言")
    @TableField("postscript")
    private String postscript;

    /**
     * 运费
     */
    @ApiModelProperty("运费")
    @TableField("shopping_fee")
    private BigDecimal shoppingFee;

    /**
     * 微信订单号
     */
    @ApiModelProperty("微信订单号")
    @TableField("pay_id")
    private Integer payId;

    /**
     * 实际需要支付的金额
     */
    @ApiModelProperty("实际需要支付的金额")
    @TableField("actual_price")
    private BigDecimal actualPrice;

    @TableField("integration")
    @ApiModelProperty("订单商品id")
    private Integer integration;

    /**
     * 订单总价
     */
    @ApiModelProperty("订单总价")
    @TableField("order_price")
    private BigDecimal orderPrice;

    @TableField("add_time")
    @ApiModelProperty("添加订单时间")
    private Date addTime;

    /**
     * 确认时间
     */
    @ApiModelProperty("确认时间")
    @TableField("confirm_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date confirmTime;

    @TableField("pay_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("支付时间")
    private Date payTime;

    /**
     * 使用的优惠券id
     */
    @ApiModelProperty("使用的优惠券id")
    @TableField("coupon_id")
    private Integer couponId;

    /**
     * 回调_状态
     */
    @ApiModelProperty("回调_状态")
    @TableField("callback_status")
    private String callbackStatus;



    /**
     * 商品名字
     */
    /*@ApiModelProperty("商品名字")
    @TableField("goods_name")
    private String goodsName;*/

    /**
     * 商品数量
     */
    /*@ApiModelProperty("商品数量")
    @TableField("pro_num")
    private Integer prodNum;*/

    /**
     * 快递单号
     */
    @ApiModelProperty("快递单号")
    @TableField("express_no")
    private String logisticCode;

    /**
     * 订单id
     */
    /*@ApiModelProperty("快递单号")
    @TableField("goods_id")
    private Integer goodsId;*/

    /**
     * 收货地址
     */
    /*@ApiModelProperty("收货地址")
    @TableField("address")
    private String address;*/


}